import request from '@/utils/request'
//客户管理列表
export const getCustomerListByPage = (data) => request.post('/customer/getCustomerListByPage', data)

//客户管理添加
export const saveCustomer = (data) => request.post('/customer/saveCustomer', data)

//客户管理添加
export const updateCustomer = (data) => request.post('/customer/updateCustomer', data)

//客户管理添加
export const deleteCustomer = (data) => request.post('/customer/deleteCustomer', data)

//客户管理添加
export const getCustomerList = (data) => request.post('/customer/getCustomerList', data)

//任人员管理
export const getUserListByPage = (data) => request.post('/user/getUserListByPage', data)

//添加人员（/user/saveUser）
export const saveUser = (data) => request.post('/user/saveUser', data)

//修改人员（/user/updateUser）
export const updateUser = (data) => request.post('/user/updateUser', data)

//删除人员（/user/deleteUser）
export const deleteUser = (data) => request.post('/user/deleteUser', data)

//线管（/user/deleteUser）
export const getPipeLineListByPage = (data) => request.post('/pipeLine/getPipeLineListByPage', data)

//添加线管
export const savePipeLine = (data) => request.post('/pipeLine/savePipeLine', data)

//修改管线信息（/pipeLine/updatePipeLine）
export const updatePipeLine = (data) => request.post('/pipeLine/updatePipeLine', data)

//删除管线（/pipeLine/deletePipeLine）
export const deletePipeLine = (data) => request.post('/pipeLine/deletePipeLine', data)

//监测点（/pipeLine/deletePipeLine）
export const getCheckPointListByPage = (data) => request.post('/checkPoint/getCheckPointListByPage', data)

//监测点（/pipeLine/deletePipeLine）
export const getPipeLineListByCusId = (data) => request.post('/pipeLine/getPipeLineListByCusId', data)

//添加监测点
export const saveCheckPoint = (data) => request.post('/checkPoint/saveCheckPoint', data)

//修改监测点参数配置信息（/checkPoint/updateCheckPointParam）
export const updateCheckPoint = (data) => request.post('/checkPoint/updateCheckPoint', data)

//删除监测点
export const deleteCheckPoint = (data) => request.post('/checkPoint/deleteCheckPoint', data)

//监测点详情
export const getChePointParaByDeviceNo = (data) => request.post('/checkPoint/getChePointParaByDeviceNo', data)

//监测点修改
export const updateCheckPointParam = (data) => request.post('/checkPoint/updateCheckPointParam', data)

//"验证监测点名称是否存在
export const checkExiCheckPointName = (data) => request.post('/checkPoint/checkExiCheckPointName', data)

//"验证监测点编号是否存在
export const checkExiEndTagName = (data) => request.post('/checkPoint/checkExiEndTagName', data)


//获取报警规则列表（/alarm/getAlarmRuleListByPage）
export const getAlarmRuleListByPage = (data) => request.post('/alarm/getAlarmRuleListByPage', data)

//添加报警规则（/alarm/saveAlarmRule）
export const saveAlarmRule = (data) => request.post('/alarm/saveAlarmRule', data)

//根据类型获取报警规则（/alarm/getAlarmTypeList）
export const getAlarmTypeList = (data) => request.post('/alarm/getAlarmTypeList', data, {
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
    }
})

//修改报警规则（/alarm/updateAlarmRule）
export const updateAlarmRule = (data) => request.post('/alarm/updateAlarmRule', data)

//删除报警规则（/alarm/deleteAlarmRule）
export const deleteAlarmRule = (data) => request.post('/alarm/deleteAlarmRule', data)
